package com.gupao.normal.coupon.couponserviceprovider.service;

import org.apache.dubbo.config.annotation.DubboService;
import org.gupao.normal.example.ICouponService;
import org.gupao.normal.example.dto.CouponDto;

/**
 * @Author: Mic
 * @公众号： 跟着Mic学架构
 * @官网： https://ke.gupaoedu.cn
 * @Org: 咕泡教育
 **/
@DubboService(version = "2.0",registry = "nacos-registry",loadbalance = "shortestresponse",validation = "true")
public class CouponService2 implements ICouponService {

    @Override
    public String selectValidCoupons() {
        return "Version2.0，返回优惠券列表.";
    }

    @Override
    public String saveCoupons(CouponDto couponDto) {
        //检查参数
        return "保存成功";
    }
}
